﻿using System;
using System.Collections.Generic;
using System.Xml.Serialization;

namespace Bambit.XmlRpc
{
	/// <summary>
	/// Holds a collection of <see cref="Value"/> objects in it's <see cref="Data"/>
	/// </summary>
	[Serializable]
	[XmlType]
	public class RpcArray
	{

		/// <summary>
		/// Initializes a new instance of the <see cref="RpcArray"/> class.
		/// </summary>
		public RpcArray()
		{
			Data = new List<Value>();
		}

		/// <summary>
		/// Gets or sets the data.
		/// </summary>
		/// <value>The data.</value>
		[XmlArray("data")]
		[XmlArrayItem("value", typeof(Value))]
		public List<Value> Data { get; set; }
	}
}
